package com.zecan.blog.common.status;

import com.zecan.blog.common.status.code.BlogResultCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @ClassName BlogCommonStatus
 * @Description
 * @date 2022/10/28 18:43
 * @Version 1.0
 * 博客状态
 */
@AllArgsConstructor
@Getter
public enum BlogCommonStatus {
    /** 状态返回 **/
    REQUEST_SUCCESS(BlogResultCode.OK,"请求成功"),
    REQUEST_DATA_ERROR(BlogResultCode.DATA_ERROR,"请求数据异常"),
    NULL_POINT_ERROR(BlogResultCode.NULL_POINT_ERROR,"参数为空"),
    USER_LOGIN_FAIL(BlogResultCode.USER_LOGIN_FAIL,"用户名密码错误"),
    REQUEST_FAIL(BlogResultCode.REQUEST_FAIL,"请求时发生未知错误"),
    DEL_ERR(BlogResultCode.DEL_ERR,"删除时发生未知异常"),
    UPLOAD_IMAGE_FAIL(BlogResultCode.UPLOAD_IMAGE_FAIL,"上传图片发生错误");
    int code;
    String msg;
}
